import 'dart:async';

import 'package:flutter/services.dart';

class FlutterAesPlugin {
  static const MethodChannel _channel =
      const MethodChannel('flutter_aes_plugin');

  ///加密
  static Future<String> encrypt(String data) async {
    final String result = await _channel.invokeMethod('encrypt', data);
    return result;
  }

  ///解密
  static Future<String> decrypt(String data) async {
    final String result = await _channel.invokeMethod('decrypt', data);
    return result;
  }
}
